﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Data
{
    public class EntityRelation
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 主要的实体对象
        /// </summary>
        public EntityMetadata PrimaryEntity { get; set; }
        public Guid PrimaryEntityId { get; set; }

        /// <summary>
        /// 被关联的实体对象
        /// </summary>
        public EntityMetadata RelationEntity { get; set; }
        public Guid RelationEntityId { get; set; }

        /// <summary>
        /// 关联方式是否为内联
        /// </summary>
        public bool IsInline { get; set; }
    }
}
